package com.usian.skill.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.skill.mapper.SkillOrderMapper;
import com.usian.skill.pojo.SkillOrder;
import com.usian.skill.service.SkillOrderService;
import org.springframework.stereotype.Service;

@Service
public class SkillOrderServiceImpl extends ServiceImpl<SkillOrderMapper, SkillOrder> implements SkillOrderService {
    @Override
    public SkillOrder getByUserId(String userId, Integer goodsId) {
        return getOne(Wrappers.<SkillOrder>lambdaQuery().eq(SkillOrder::getUserId,userId).eq(SkillOrder::getGoodsId,goodsId));
    }
}
